package com.webware.view.client.app;

import com.mvp4g.client.annotation.History;
import com.mvp4g.client.annotation.History.HistoryConverterType;
import com.mvp4g.client.history.HistoryConverter;

@History(type = HistoryConverterType.SIMPLE)
public class AppHistoryConverter implements HistoryConverter<AppEventBus> {

    public String convertToToken(String eventName, String name) {
	return name;
    }

    public String convertToToken(String name) {
	return name;
    }
    
    @Override
    public void convertFromToken(String name, String param, AppEventBus eventBus) {
	eventBus.dispatch(name, param);
    }

    @Override
    public boolean isCrawlable() {
	return false;
    }

}
